using System.Security.Principal;
using AndyPike.Commons;

namespace AndyPike.Snowflake.Core.Messages
{
    public class AccountInfoMessage : IMessage, IPrincipal
    {
        public string UserName { get; set; }
        public string Email { get; set; }

        public bool IsInRole(string role)
        {
            return false;
        }

        public IIdentity Identity
        {
            get { return new GenericIdentity(UserName, "Snowflake Authentication"); }
        }

    }
}